import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

Vue.filter('formatPlayCount', function (val) {
  if (val / 100000000 > 1) {
    return (val / 100000000).toFixed(2).toString().slice(0, -1) + "亿";
  } else if (val / 10000 > 1) {
    return (val / 10000).toFixed(2).toString().slice(0, -1) + "万";
  } else {
    return val;
  }
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
